import request from '@/utils/request'

// 查询违约金列表
export function listFeFine(query) {
  return request({
    url: '/life/feFine/list',
    method: 'get',
    params: query
  })
}

// 查询违约金详细
export function getFeFine(id) {
  return request({
    url: '/life/feFine/' + id,
    method: 'get'
  })
}

// 新增违约金
export function addFeFine(data) {
  return request({
    url: '/life/feFine',
    method: 'post',
    data: data
  })
}

// 修改违约金
export function updateFeFine(data) {
  return request({
    url: '/life/feFine',
    method: 'put',
    data: data
  })
}

// 删除违约金
export function delFeFine(id) {
  return request({
    url: '/life/feFine/' + id,
    method: 'delete'
  })
}
